// 文件路径: com.huaxin.device.service.DeviceReadingEnvironmentService.java
package com.huaxin.device.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huaxin.device.dto.ResponseResult;
import com.huaxin.device.dto.request.DeviceReadingEnvironmentCreateReqDTO;
import com.huaxin.device.dto.request.DeviceReadingEnvironmentPageListReqDTO;
import com.huaxin.device.models.DeviceReadingEnvironment;

public interface DeviceReadingEnvironmentService extends IService<DeviceReadingEnvironment> {

    /**
     * 创建一条环境检测仪数据
     */
    ResponseResult<DeviceReadingEnvironment> create(DeviceReadingEnvironmentCreateReqDTO in);

    /**
     * 根据设备ID获取最新的环境数据
     */
    DeviceReadingEnvironment getLatestByDeviceId(String deviceId);

    /**
     * 分页查询环境检测仪数据
     */
    ResponseResult<IPage<DeviceReadingEnvironment>> pageQuery(DeviceReadingEnvironmentPageListReqDTO in);
}